home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13374 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: howland.reston.ans.net!psinntp!psinntp!psinntp!psinntp!usenet
  2. From: grantp@usa.pipeline.com(Pete Grant)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Protected functions
  5. Date: 25 Mar 1996 12:33:18 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4j63qe$eq7@news1.h1.usa.pipeline.com>
  8. References: <3155636F.3461@clubi.ie>
  9. NNTP-Posting-Host: 38.8.120.13
  10. X-PipeUser: grantp
  11. X-PipeHub: usa.pipeline.com
  12. X-PipeGCOS: (Pete Grant)
  13. X-Newsreader: Pipeline v3.5.0
  14.  
  15. On Mar 24, 1996 14:59:59 in article <Protected functions>, 'BRUCE
  16. <jbruce@clubi.ie>' wrote: 
  17.  
  18.  
  19. >Can any one tell  me what a protected function of a class is ? 
  20. A protected member function is just like any other member function 
  21. except that it may be called only by: 
  22.  
  23.   1.  member functions of the class. 
  24.   2.  member functions of non-privately derived classes. 
  25.   3.  friends of the class. 
  26.  
  27. There's a little more detail, but the above is a good starting 
  28. point.  BTW, need I say that #2 is only for classes derived 
  29. from the class which has the protected member in question? 
  30.  
  31. -- 
  32. Pete Grant 
  33. Kalevi, Inc. 
  34. Software Engineering & development
  35.